import os

from tornado import web, ioloop

from MxForum.urls import urlpattern
from MxForum.settings import settings

if __name__ == '__main__':
    import wtforms_json
    # 解决json导入wtf验证问题
    wtforms_json.init()

    app = web.Application(urlpattern, **settings)
    app.listen(8000)

    ioloop.IOLoop.current().start()
